public class SingletLazy {
    private static SingletLazy instance = null;
    private static Object object = new Object();
    public static SingletLazy getInstance(){
        if(instance == null) {
            synchronized (object) {
                if(instance == null) {
                    instance = new SingletLazy();
                }
            }
        }
        return instance;
    }
}
